const express = require( 'express' );
const router = express.Router();
const speciality = require( "../../../controllers/speciality.controller" );
/**
 * 查询专业信息列表
 * @route POST /api/private/speciality/list
 * @group 技能管理 - list of speciality
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of speciality info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/list", speciality.list );

/**
 * 新增专业信息
 * @route POST /api/private/speciality/create
 * @group 技能管理 - list of speciality
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of speciality info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/create", speciality.create );


/**
 * 修改专业信息
 * @route POST /api/private/speciality/update
 * @group 技能管理 - list of speciality
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of speciality info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/update", speciality.update );

/**
 * 删除专业信息
 * @route POST /api/private/speciality/delete
 * @group 技能管理 - list of speciality
 * @param {object} query - 请按固定查询规范
 * @returns {object} 200 - An array of speciality info
 * @returns {object} 605 - 请求失败
 * @returns {Error}  default - Unexpected error
 */
router.post( "/delete", speciality.delete );
module.exports = router;